package org.panda.ibog.service;

import org.panda.ibog.dao.MarkdownTextDao;
import org.panda.ibog.domain.MarkdownTextBean;
import org.panda.ibog.domain.RenderedMarkdonwTextBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MarkdownTextService {

    @Autowired
    private MarkdownTextDao markdownTextDao;

    public boolean insert(RenderedMarkdonwTextBean textBean){
        boolean res = false;
        try{
            markdownTextDao.insert(textBean);
            res = true;
        } catch (Exception e){
            res = false;
        }
        return res;
    }
}
